package im.vinci.server.feed.domain;

import java.util.HashMap;

/**
 * Created by mingjie on 16/12/28.
 */
public enum FeedType {
    NONE("none"), MUSIC("music"), FAVORITE_MUSIC("favorite_music"), STEP("step"), HEART_RATE("heart_rate"), RECORD("record"), VINCI_TODAY_PLAY_LIST("vinci_today_play_list"), PLAY_LIST("play_list"), VINCI_HEALTHY_MOTION("vinci_healthy_motion"), SHARED_HEALTHY_MOTION("shared_healthy_motion"),VINCI_WEB("vinci_web");

    private static HashMap<String, FeedType> map = new HashMap<String, FeedType>();

    static {
        for (FeedType feedType : FeedType.values()) {
            map.put(feedType.getStr(), feedType);
        }
    }

    private String str;

    FeedType(String str) {
        this.str = str;
    }

    public String getStr() {
        return str;
    }

    public static FeedType getFeedType(String str) {
        return map.get(str);
    }
}
